package com.redepronik.negosys.invfac.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * The persistent class for the grupocaracteristica database table.
 * 
 */
@Entity
@Table(schema = "invfac", name = "grupocaracteristica")
@NamedQuery(name = "Grupocaracteristica.findAll", query = "SELECT g FROM Grupocaracteristica g")
public class Grupocaracteristica implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(allocationSize = 1, name = "GRUPOCARACTERISTICA_GRUPOCARACTERISTICAID_GENERATOR", sequenceName = "INVFAC.GRUPOCARACTERISTICA_GRUPOCARACTERISTICAID_SEQ")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "GRUPOCARACTERISTICA_GRUPOCARACTERISTICAID_GENERATOR")
	@Column(unique = true, nullable = false)
	private Integer grupocaracteristicaid;

	@Column(nullable = false)
	private Boolean imprimir;

	@Column(nullable = false)
	private Integer orden;

	// bi-directional many-to-one association to Caracteristica
	@ManyToOne
	@JoinColumn(name = "caracteristicaid", nullable = false)
	private Caracteristica caracteristica;

	// bi-directional many-to-one association to Grupo
	@ManyToOne
	@JoinColumn(name = "grupoid", nullable = false)
	private Grupo grupo;

	public Grupocaracteristica() {
	}

	public Caracteristica getCaracteristica() {
		return this.caracteristica;
	}

	public Grupo getGrupo() {
		return this.grupo;
	}

	public Integer getGrupocaracteristicaid() {
		return this.grupocaracteristicaid;
	}

	public Boolean getImprimir() {
		return this.imprimir;
	}

	public Integer getOrden() {
		return this.orden;
	}

	public void setCaracteristica(Caracteristica caracteristica) {
		this.caracteristica = caracteristica;
	}

	public void setGrupo(Grupo grupo) {
		this.grupo = grupo;
	}

	public void setGrupocaracteristicaid(Integer grupocaracteristicaid) {
		this.grupocaracteristicaid = grupocaracteristicaid;
	}

	public void setImprimir(Boolean imprimir) {
		this.imprimir = imprimir;
	}

	public void setOrden(Integer orden) {
		this.orden = orden;
	}

}